home *** CD-ROM | disk | FTP | other *** search
/ The PC Game Zone / Carpe Diem - The PC Game Zone.iso / ultroul / install.bat < prev    next >
DOS Batch File  |  1994-11-20  |  4KB  |  153 lines

  1. @echo off
  2. cls
  3.  
  4. if not exist ULTROUL.EXE goto noFile
  5.  
  6. if "%1" == "" goto help
  7. if "%2" == "" goto noPath
  8.  
  9. if errorlevel 1 goto errorMsg
  10.  
  11. :path
  12.  
  13. for %%A in (A B C D E F G H I J K L a b c d e f g h i j k l) do if !%1 == !%%A goto okay1
  14. goto help
  15.  
  16. :okay1
  17.  
  18. for %%A in ( : \ ) do if !%2 == !%%A goto help
  19.  
  20. echo .                         INSTALLING TO DRIVE %1:\%2
  21. echo .
  22. echo .                         ULTIMATE ROULETTE INSTALLATION
  23. echo .
  24. md %1:\%2
  25. echo .                                 COPYING FILES
  26. copy  *.exe %1:\%2
  27. goto success1
  28.  
  29. :noPath
  30.  
  31. for %%A in (A B C D E F G H I J K L a b c d e f g h i j k l) do if !%1 == !%%A goto okay
  32.  
  33. goto help
  34.  
  35. :okay
  36.  
  37. for %%A in (\ :) do if !%1 == !%%A goto help
  38.  
  39. echo .                         INSTALLING TO DRIVE %1:\ROULETTE
  40. echo .
  41. echo .                          ULTIMATE ROULETTE INSTALLATION
  42. echo .
  43. md %1:\ROULETTE
  44. echo                                   COPYING FILES
  45. copy  *.exe %1:\ROULETTE
  46.  
  47. if errorlevel 1 goto errorMsg
  48.  
  49. goto success2
  50.  
  51. :help
  52. cls
  53. @echo off
  54. echo .
  55. echo .                        ULTIMATE ROULETTE INSTALL UTILTIY
  56. echo .
  57. echo .    This program must be installed on a hard drive.  To install this
  58. echo .    program on C drive, you would type "INSTALL C".  This will put the
  59. echo .    game in the directory "ROULETTE".  If you wish to install this
  60. echo .    game to a different directory, type "INSTALL C name of directory"
  61. echo .
  62. echo .    EXAMPLE: to install to D drive in the directory GAMES type......
  63. echo .
  64. echo                             "INSTALL D GAMES"
  65. goto end
  66.  
  67. :noFile
  68. cls
  69. echo .
  70. echo .              AN ERROR HAS OCCURRED, INSTALLATION WAS UNSUCCESSFUL
  71. echo .
  72. echo .    Sorry, the file "ULTROUL.EXE" is not on this disk.  This file must
  73. echo .    be available in this directory to attempt installation of this game.
  74. echo .    Please check all directories for this file.  If found copy it to this
  75. echo .    directory and type "INSTALL" to continue.
  76.  
  77. goto end
  78.  
  79. :msg
  80. cls
  81. echo .              AN ERROR HAS OCCURRED, INSTALLATION WAS UNSUCCESSFUL
  82. echo .
  83. echo .    Sorry, at least one file required to run ULTIMATE ROULETTE is missing.
  84. echo .    The disk may be too full to allow for all files to be decompressed or
  85. echo .    your souce disk may be bad. You must have at least 2.5 mega bytes of
  86. echo .    Hard Disk space for successful installation.
  87. goto  end
  88.  
  89. :errorMsg
  90. cls
  91. echo .
  92. echo .
  93. echo .              AN ERROR HAS OCCURRED, INSTALLATION WAS UNSUCCESSFUL
  94.  
  95. goto end
  96.  
  97. :success1
  98.  
  99. cls
  100. echo .
  101. echo .
  102. echo .                             DECOMPRESSING FILES
  103. echo .
  104. %1:
  105. cd %1:\%2
  106. if not exist ULTROUL.EXE goto errorMsg
  107. ULTROUL.EXE
  108. DEL ULTROUL.EXE
  109.  
  110. @echo off
  111. cls
  112. if not exist ROULETTE.EXE goto msg
  113.  
  114. goto endMessage
  115.  
  116. :success2
  117.  
  118. cls
  119. echo .
  120. echo .
  121. echo .                             DECOMPRESSING FILES
  122. echo .
  123. %1:
  124. cd %1:\ROULETTE
  125. if not exist ULTROUL.EXE goto errorMsg
  126. ULTROUL.EXE
  127. DEL ULTROUL.EXE
  128.  
  129. @echo off
  130. cls
  131. if not exist ROULETTE.EXE goto msg
  132.  
  133. :endMessage
  134.  
  135. echo .
  136. echo .
  137. echo .                          INSTALLATION COMPLETE
  138. echo .                  TYPE "ROULETTE" TO RUN ULTIMATE ROULETTE
  139. echo .                                    or
  140. echo .                 "ROULBOOK" TO READ THE GAME DOCUMENTATION
  141. echo .
  142. echo .   TO RUN THIS GAME IN THE FUTURE YOU NEED TO CHANGE TO THE DIRECTORY
  143. echo .   THAT THE GAME WAS INSTALLED TO THEN TYPE "ROULETTE" AND PRESS ENTER
  144. echo .
  145. echo .   EXAMPLE WITH THE GAME INSTALLED TO THE DIRECTORY "ROULETTE".  AFTER
  146. echo .   YOUR COMPUTER BOOTS UP, TYPE "CD\ROULETTE" THEN PRESS ENTER. TYPE 
  147. echo .   "ROULETTE" AND PRESS ENTER.  IF THIS GAME WAS INSTALLED TO A 
  148. echo .   DIRECTORY OTHER THAN ROULETTE, SUBSTITUTE THE DIRECORY NAME FOR 
  149. echo .   ROULETTE IN THE STATEMENT "CD\ROULETTE".
  150. echo .
  151.  
  152. :end
  153.